package com.itheima.factory;


import com.itheima.dao.UserDao;
import com.itheima.dao.impl.UserDaoImpl;

/**
 * 实例工厂方式创建bean
 */
public class MyBeanFactory2 {
    public MyBeanFactory2() {
        System.out.println("MyBeanFactory2.MyBeanFactory2");
    }

    public UserDao userDao(){
        return new UserDaoImpl();
    }
}
